#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
from datetime import datetime
from django.template import Library

register = Library()

@register.simple_tag(takes_context=True)
def current_time(context):

    return datetime.now().strftime(context.get('tformat'))

@register.inclusion_tag('show_list.html')
def show_list(value, style):

    return {'ls': value, 'style': style}